package com.power.home.net.okHttp.exception;

public class OkHttpException extends Exception {
    private static final long serialVersionUID = 1L;
    /**
     * the server return code
     */
    private int ecode;

    /**
     * the server return error message
     */
    private Object emsg;

    public OkHttpException(int ecode, Object emsg) {
        this.ecode = ecode;
        this.emsg = emsg;
    }

    public int getEcode() {
        return ecode;
    }

    public Object getEmsg() {
        return emsg;
    }

    @Override
    public String toString() {
        return "OkHttpException{" +
                "ecode=" + ecode +
                ", emsg=" + emsg +
                '}';
    }
}
